package com.be.beadmin.product.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 20:38 2023/4/23
 * @Modified By:
 **/
@Entity
@Table(name="T_OM_WrokingHoursOverView")
@Getter
@Setter
public class WrokingHoursOverView extends BaseEntity {

    @Column(name = "WoWorkHours",columnDefinition = "Float COMMENT '实际工单填报工时'")
    private Float woWorkHours;

    @Column(name = "ProjectWorkHours",columnDefinition = "Float COMMENT '实际项目填报工时'")
    private Float projectWorkHours ;
    //-----

    @Column(name = "ProcessId",columnDefinition = "VARCHAR(50) COMMENT '工序ID'")
    private String processId;

    @Column(
            name = "Operator_ID",
            columnDefinition = "VARCHAR(32) COMMENT '操作人' "
    )
    protected String operatorId;

    /**
     * 0暂停计时
     * 1计时中
     * 2计时结束
     */
    @Column(
            name = "TimeFlag",
            nullable = false,
            columnDefinition = "decimal(1) default 0 COMMENT '计时开关' "
    )
    protected Integer timeFlag = 0;

    @Column(name = "AccWorkHours",columnDefinition = "Float COMMENT '当前累计工时'")
    private Float accWorkHours ;

    @Column(name = "SumWorkHours",columnDefinition = "Float COMMENT '当前工序总累计工时'")
    private Float sumWorkHours ;

    @Column(name = "CurrStartTime",columnDefinition = "datetime COMMENT '本次计时开始时间' ")
    private Date currStartTime;


    @Column(name = "UserId",columnDefinition = "VARCHAR(50) not null COMMENT '用户Id' ")
    private String userId;

}
